package com.magicalcoder.pigeon.common.dto;

/**
 * Created by hzhedongyu on 2017/5/31.
 */
public class RmtAddress {

    private String host;
    private int port;
    private String serviceName;//当使用zookeeper客户端与服务端必须一致，当无zookeeper 客户端可以自行定义 只要端口号与服务端一致即可
    private volatile boolean dead;//是否挂掉

    public RmtAddress(String host, int port, String serviceName) {
        this.host = host;
        this.port = port;
        this.serviceName = serviceName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public boolean isDead() {
        return dead;
    }

    public void setDead(boolean dead) {
        this.dead = dead;
    }
}
